home *** CD-ROM | disk | FTP | other *** search
- Path: news.halcyon.com!usenet
- From: Glen Parker <glenebob@halcyon.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Stopping a program with a password or ESC???
- Date: Thu, 04 Apr 1996 11:04:34 -0800
- Organization: Computer Systems Contracting
- Message-ID: <31641D42.7369@halcyon.com>
- References: <4jprhm$uca@mule1.mindspring.com>
- NNTP-Posting-Host: blv-pm2-ip29.halcyon.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.01 (WinNT; I)
-
- > I've written a program that controls a linear motion table and several
- > input and output devices. However, there's no way of exiting it
- > without CTL-ALT-DEL ing out of it. How can I make it so that when I
- > press ESC at any point in the program it will exit?? This would be
- > great for starters. However, in the future I might want to make it so
- > that a specific sequence of key presses exits the program. But the
- > catch is that I wouldn't want the program to halt as each key was
- > pressed. For instance, a person would have to type "end" all at once
- > without significant pauses for the program to exit, otherwise it would
- > keep running like normal.
- >
- > Any ideas?? Primarily on my first question, once I get the ESC
- > figured out I'll worry about the 'password' bit.
-
-
- So... What OS are you running under? What kind of
- user interface are you using? Without this info,
- what can a guy do?
-
- Glen
-
-
-